package com.edu.mapper;

import com.edu.bean.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderMapper {

    Order selectOrderById(int orderId);

    List<Order> selectOrders(Order query);

    List<Order> selectOrders2(@Param("beginDate") String begin, @Param("endDate") String end);

    List<Order> selectOrders3(Map<String,Object> query);

    int insertOrder(Order order);

    int updateOrder(Order order);
}
